﻿<UserControl x:Class="TFSCodeReviewHelper.WorkItemVisualizer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="50" d:DesignWidth="700">
    <StackPanel Orientation="Vertical">
        <StackPanel Orientation="Horizontal">
            <TextBlock Grid.Column="1" Grid.Row="0" TextAlignment="Center" FontSize="20" FontWeight="Bold" Width="150"
                       Text="{Binding WorkItemNumber}" />
            <TextBlock Grid.Column="1" Grid.Row="1" VerticalAlignment="Center"
                       Text="{Binding WorkItemTitle}"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal">
            <TextBlock Width="80" HorizontalAlignment="Right" VerticalAlignment="Center" Padding="3">Assigned To:</TextBlock>
            <TextBox VerticalAlignment="Center" Width="150" IsReadOnly="True"
                     Text="{Binding AssignedTo}" />
            <TextBlock Width="80" HorizontalAlignment="Right" VerticalAlignment="Center" Padding="3">Status:</TextBlock>
            <TextBox VerticalAlignment="Center" Width="150" IsReadOnly="True"
                     Text="{Binding WorkItemState}" />
            <TextBlock Width="80" HorizontalAlignment="Right" VerticalAlignment="Center" Padding="3">Type:</TextBlock>
            <TextBox VerticalAlignment="Center" Width="150" IsReadOnly="True"
                     Text="{Binding WorkItemTypeName}" />
        </StackPanel>
    </StackPanel>
</UserControl>
